home *** CD-ROM | disk | FTP | other *** search
- comNum = 0;
- stop();
- i = 0;
- while(i < 1000)
- {
- j = 1;
- while(j < 3)
- {
- if(comNum == _root.hamSerial.length)
- {
- break;
- }
- com.duplicateMovieClip("com" + comNum,comNum + 100);
- thisName = this["com" + comNum];
- thisName._x = 45 + 245 * (j - 1);
- thisName._y = 180 * i;
- if(_root.hamSerialSpec[comNum].length > 8)
- {
- thisName.hamName += "빅";
- }
- if(_root.hamSerialSpec[comNum].length < 7)
- {
- thisName.hamName += "쥬니어";
- }
- b2Num = b3Num = b4Num = b5Num = b6Num = 0;
- p = 0;
- while(p <= _root.hamSerialSpec[comNum].length - 1)
- {
- switch(_root.hamSerialSpec[comNum][p])
- {
- case 2:
- b2Num++;
- break;
- case 3:
- b3Num++;
- break;
- case 4:
- b4Num++;
- break;
- case 5:
- b5Num++;
- break;
- case 6:
- b6Num++;
- }
- thisName["h" + _root.hamSerialSpec[comNum][p]].duplicateMovieClip("s" + (p + 1),p + 10);
- thisName["s" + (p + 1)]._x = 75;
- if(p > 0)
- {
- thisName["s" + (p + 1)]._y = thisName["s" + p]._y - this["spaceTyp" + _root.hamSerialSpec[comNum][p - 1]];
- trace(this["spaceTyp" + _root.hamSerialSpec[comNum][p - 1]]);
- }
- else
- {
- thisName["s" + (p + 1)]._y = 120;
- }
- p++;
- }
- m = 1;
- while(m < 8)
- {
- thisName["h" + m]._visible = false;
- m++;
- }
- if(b3Num > 2)
- {
- switch(b3Num)
- {
- case 4:
- thisName.hamName += "Ω│╝δïñ";
- break;
- case 5:
- thisName.hamName += "초과다";
- break;
- case 6:
- thisName.hamName += "초초과다";
- }
- thisName.hamName += "토마토";
- }
- if(b5Num > 2)
- {
- switch(b5Num)
- {
- case 4:
- thisName.hamName += "Ω│╝δïñ";
- break;
- case 5:
- thisName.hamName += "초과다";
- break;
- case 6:
- thisName.hamName += "초초과다";
- }
- thisName.hamName += "∞ûæφîî";
- }
- if(b6Num > 2)
- {
- switch(b6Num)
- {
- case 4:
- thisName.hamName += "Ω│╝δïñ";
- break;
- case 5:
- thisName.hamName += "초과다";
- break;
- case 6:
- thisName.hamName += "초초과다";
- }
- thisName.hamName += "상추";
- }
- if(b2Num > 0)
- {
- switch(b2Num)
- {
- case 2:
- thisName.hamName += "더블";
- break;
- case 3:
- thisName.hamName += "스페샬";
- break;
- case 4:
- thisName.hamName += "울트라";
- break;
- case 5:
- thisName.hamName += "뷰티풀";
- }
- thisName.hamName += "φûä";
- }
- else
- {
- thisName.hamName += "야채";
- }
- if(b4Num > 2)
- {
- thisName.hamName += "느끼";
- }
- if(b4Num > 0)
- {
- thisName.hamName += "치즈";
- }
- if(_root.hamSerial[comNum] == 1)
- {
- thisName.cup._visible = true;
- thisName.hamName += "버거세트";
- thisName.price = "가격:" + (_root.hamSerialSpec[comNum].length * 500 + 1000) + "원";
- }
- else
- {
- thisName.cup._visible = false;
- thisName.hamName += "버거";
- thisName.price = "가격:" + _root.hamSerialSpec[comNum].length * 500 + "원";
- }
- comNum++;
- j++;
- }
- if(comNum == _root.hamSerial.length)
- {
- break;
- }
- i++;
- }
-